﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WCFMINERP.COM;

namespace WCFMINERP.DisjoinProForOutShop
{
  public  class Help
    {
      private static string namespaces = "WCFMINERP.DisjoinProForOutShop";

      /// <summary>
      /// 设置打印机
      /// </summary>
      public static string PrintName
      {
          get
          {
              string Name = IniFile.Ini.IniReadValue(namespaces, "PrintName");
              if (string.IsNullOrEmpty(Name))
              {
                  return "";
              }
              else
              {
                  return Name;
              }
          }
          set
          {
              IniFile.Ini.IniWriteValue(namespaces, "PrintName", value.ToString());
          }
      }

      /// <summary>
      /// 默认分区
      /// </summary>
      public static string LatticePartitionID
      {
          get
          {
              string Name = IniFile.Ini.IniReadValue(namespaces, "LatticePartitionID");
              if (string.IsNullOrEmpty(Name))
              {
                  return "";
              }
              else
              {
                  return Name;
              }
          }
          set
          {
              IniFile.Ini.IniWriteValue(namespaces, "LatticePartitionID", value.ToString());
          }
      }


      /// <summary>
      /// 是否打印标签
      /// </summary>
      public static string isPring
      {
          get
          {
              string Name = IniFile.Ini.IniReadValue(namespaces, "isPring");
              if (string.IsNullOrEmpty(Name))
              {
                  return "";
              }
              else
              {
                  return Name;
              }
          }
          set
          {
              IniFile.Ini.IniWriteValue(namespaces, "isPring", value.ToString());
          }
      }
    }
}
